package com.cnswhy.cloud.server.core.dto;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 商品相册(t_shop_product_gallery)
 * </p>
 *
 * @author cnswhy
 * @since 2020-11-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ShopProductGalleryPageDTO", description = "商品相册(t_shop_product_gallery)")
public class ShopProductGalleryPageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品主键
     */
    @ApiModelProperty(value = "商品主键")
    private Long productId;
    /**
     * 缩略图路径
     */
    @ApiModelProperty(value = "缩略图路径")
    @Length(max = 255, message = "缩略图路径长度不能超过255")
    private String thumbnail;
    /**
     * 小图路径
     */
    @ApiModelProperty(value = "小图路径")
    @Length(max = 255, message = "小图路径长度不能超过255")
    private String small;
    /**
     * 大图路径
     */
    @ApiModelProperty(value = "大图路径")
    @Length(max = 255, message = "大图路径长度不能超过255")
    private String big;
    /**
     * 原图路径
     */
    @ApiModelProperty(value = "原图路径")
    @Length(max = 255, message = "原图路径长度不能超过255")
    private String original;
    /**
     * 极小图路径
     */
    @ApiModelProperty(value = "极小图路径")
    @Length(max = 255, message = "极小图路径长度不能超过255")
    private String tiny;
    /**
     * 是否是默认图片1   0没有默认
     */
    @ApiModelProperty(value = "是否是默认图片1   0没有默认")
    private Integer isDefailt;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

}
